package cn.mccraft.uide.api.property.value;

import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;

public class StringValue extends BaseValue<String> {

	public StringValue() {
		super();
	}

	public StringValue(String initialValue) {
		super(initialValue);
	}

	@Override
	public JsonElement serialize() {
		return new JsonPrimitive(getValue());
	}

	@Override
	public void deserialize(JsonElement jsonElement) {
		setValue(jsonElement.getAsString());
	}
}
